package com.mac.hosp_pre.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mac.hosp_pre.order.entity.OrderInfo;
import com.mac.hosp_pre.order.model.req.OrderCountQueryReqDto;
import com.mac.hosp_pre.order.model.req.OrderQueryReqDto;
import com.mac.hosp_pre.order.model.resp.OrderInfoRespDto;

import java.util.Map;

public interface OrderService extends IService<OrderInfo> {

    //生成挂号订单
    String saveOrder(String scheduleId, Long patientId);

    //根据订单id查询订单详情
    OrderInfoRespDto getOrder(String orderId);

    //订单列表（条件查询带分页）
    IPage<OrderInfoRespDto> selectPage(OrderQueryReqDto orderQuery);

    //取消预约
    Boolean cancelOrder(Long orderId);

    //就诊通知
    void patientTips();

    //预约统计
    Map<String,Object> getCountMap(OrderCountQueryReqDto orderCountQuery);

}
